<template>
    <div>
        Login
        <button @click="handleLogin">登录</button>
    </div>
</template>
<script>
export default {
    methods:{
        handleLogin(){
            setTimeout(() => {
               localStorage.setItem("token","后端返回的token字段") 
            //    this.$router.back()
            this.$router.push('/center')
            }, 0);
        }
    }
}
</script>